/**
 * 小程序配置文件
 */

// 此处主机域名是腾讯云解决方案分配的域名
// 小程序后台服务解决方案：https://www.qcloud.com/solution/la

var host = "https://mini.kaililaw.com/api/";//线上地址
//var host = "http://192.168.1.33:7891/api/"
//var host="http://192.168.1.70:7891/api/"
var config = {
  //webSocket 线上地址
  socketHost: 'wss://mini.kaililaw.com/minivs', 
  //登录 
  appLogin: `${host}login`,
  //提交用户信息
  postUserInfo: `${host}userinfo`,
  //首页banner
  bannerImgUrl: `${host}banner`,
  //法加日历
  weekenddailylist: `${host}calendar/getWeekList`,
  //冲榜超人答题
  answerQuestion: `${host}qa`,
  //用户答题完毕，提交
  postAnswer: `${host}behaviour/answer`,
  //提交通关记录
  postThroughAnswer: `${host}finishGate`,
  //排行榜
  topList: `${host}ranking/rankingByType`,
  //我的排行榜
  myTopList: `${host}ranking/rankingByOpenId`,
  //我的记录
  recordList: `${host}behaviour/recordList`,
  //banner 规则说明
  ruleList: `${host}getCategory`,
  //用户反馈
  feedbackList: `${host}insertRecord`,
  //我的排行标签
  toplistLabel: `${host}getLabelName`,
  //获取我来闯关关卡 
  getGameLevels: `${host}gate/index`,
 //判断用户闯关是否有机会游戏
  isCanPlay: `${host}gate/beginGate`,
  //判断用户冲榜是否有机会游戏
  isCanPlays: `${host}talent/start`,
  //根据关卡id获取每一关卡对应的题目及答案
  getQuestionAndAnswerByGateId: `${host}getQuestionAndAnswerByGateId`,
  //领取奖品
  toRecever: `${host}insertPrize`,
  //用户闯关是否分享得机会
  getOneChance: `${host}share/updateUserGate`,
  //用户冲榜是否分享得机会
  getOneChances: `${host}share/increaseTalentChance`,
  //获取擂台赛分类
  getCompetitionType: `${host}challenge/getQuestionBankList`,

  //获取擂台赛结果
  getBattleResult: `${host}challenge/vsresult`,

  //----------------------------end---------------------------------------------------------




  //-------法律考试相关api------

  //考试首页数据
  getExamList: `${host}fajiaExam/getExamList`,

  //获取考试信息 是否参加过考试 是否合格等信息
  getExamInfo: `${host}fajiaExam/gotoApply`,

  //查询考试成绩
  queryExamResult: `${host}fajiaExam/queryRecord`,
  //获取考试须知
  queryExamKonw: `${host}fajiaExam/getExplain`,

  //获取考试单位（一二级单位）
  getExamUnit: `${host}fajiaExam/getUnit`,

  //开始考试 
  startExam: `${host}fajiaExam/beginExam`,

  //获取考试题
  getExamQuesList: `${host}fajiaExam/getQuestions`,

  //提交考试成绩
  addExamScore: `${host}fajiaExam/addRecord`,


  //----------------------------end--------------------------------

  //-------------在storage中存储数据的KEY----------------------------
  //存储用户答题集合
  questionList: 'questionList',
  //当前答题的位置
  currentPostion: 'postion',
  //当前问题obj
  currQuestion: 'currentQuestion',
  //是否完成本轮答题
  isFinished: "isFinished",

  //好友对战 分类id
  quesTypeId: 'quesTypeId',
  //好友对战 房间id
  roomId: 'roomId',
  currRoomInfo: 'currRoomInfo',

  

  //========一站到底数据存储需要的Key=========
  gateList: "gateList",

  //法律考试题
  examList: "examList",
  //宪法习作考试题
  exercisesList: "exercisesList",
  //考试结果实体记录
  examResultInfo: "examResultInfo",




  // ========================下边是自定义的pageId===============
//冲榜超人答题规则说明页分享 
  calendar: 100,
//一站到底规则说明页分享
  gameInstruction: 101,
  //一站到底游戏页分享
  throughGame: 102,
  toplist: 103,
  myrecord:104,
  //擂台赛
  competition: 105,
  //擂台赛结果分享
  battleResult: 106,
  //冲榜超人结果分享
  toplistshowResult: 107,
  // 冲榜达人分享
  // toplist:108,
  //法律考试分享
  //2022-06-23 add
  homeExam:108
};

module.exports = config
